svn path=/trunk/; revision=18842
authorHans Breuer <hans@src.gnome.org>
Mon, 17 Sep 2007 19:53:54 +0000 (19:53 +0000)
committerHans Breuer <hans@src.gnome.org>
Mon, 17 Sep 2007 19:53:54 +0000 (19:53 +0000)
svn path=/trunk/; revision=18842

ChangeLog
gtk/gtkbuilderparser.c
gtk/gtkselection.c
gtk/makefile.msc.in
tests/autotestfilesystem.c
tests/makefile.msc

index 0eb760b2ef975e44d08b5e226b85f52961618376..c2eb850a49c41a2b6aa03f03750bc173ac13a862 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2007-09-17  Hans Breuer  <hans@breuer.org>
+
+       * gtk/makefile.msc.in : updated msvc build
+       * gtk/gtkbuilderparser.c : fixed gccism - stack allocated variable 
+       size array
+       
+       * gtk/gtkselection.c(547) : error C4033: 'gtk_target_list_find' 
+       must return a value
+
+       * test/makefile.msc : added some more tests
+       * tests/autotestfilesystem.c : HAVE_UNISTD_H, _rmdir
+
 2007-09-17  Amitakhya Phukan  <amitakhya@svn.gnome.org>
 
        * configure.in: Added as to ALL_LINGUAS.
index 5c80c101100a15de83b1eedebdd7f377c6cbc994..8833f397ded757805f1590b7d971d6a0507b4f56 100644 (file)
@@ -857,8 +857,10 @@ dpgettext (const char *domain,
   size_t msgctxt_len = strlen (msgctxt) + 1;
   size_t msgid_len = strlen (msgid) + 1;
   const char *translation;
-  char msg_ctxt_id[msgctxt_len + msgid_len];
+  char* msg_ctxt_id;
 
+  msg_ctxt_id = g_alloca (msgctxt_len + msgid_len);
+  
   memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
   msg_ctxt_id[msgctxt_len - 1] = '\004';
   memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
index 5100cd9aa02dbc521cbf82aae100a559dfe03b0a..f655907c11bacad4713ad44e1850b2f0f52f1f20 100644 (file)
@@ -544,7 +544,7 @@ gtk_target_list_find (GtkTargetList *list,
 {
   GList *tmp_list;
 
-  g_return_if_fail (list != NULL);
+  g_return_val_if_fail (list != NULL, FALSE);
 
   tmp_list = list->list;
   while (tmp_list)
index 412e2c0a8808682e61c54dc554bf5ed27644c543..b4f5bf9d62f5c7936f5f3ca73c15eef7bb069574 100644 (file)
@@ -70,9 +70,14 @@ gtkbuiltincache.h: gtk-update-icon-cache.exe
        gtk-update-icon-cache --force --ignore-theme-index      \
           --source builtin_icons stock-icons > gtkbuiltincache.h
 
+GENERATED = \
+       gtktypebuiltins.h gtktypebuiltins.c \
+       gtkmarshal.h gtkmarshal.c gtkmarshalers.h gtkmarshalers.c \
+       gtk.def gtkalias.h gtkaliasdef.c
+
 all :                                          \
        ..\config.h                             \
-       generated                               \
+       $(GENERATED)                            \
        gtk-update-icon-cache.exe               \
        gtkbuiltincache.h                       \
        libgtk-win32-$(GTK_VER)-0.dll           \
@@ -98,6 +103,9 @@ gtk_OBJECTS =                                        \
        gtkbindings.obj                         \
        gtkbbox.obj                             \
        gtkbox.obj                              \
+       gtkbuildable.obj        \
+       gtkbuilder.obj          \
+       gtkbuilderparser.obj    \
        gtkbutton.obj                           \
        gtkcalendar.obj                         \
        gtkcelleditable.obj                     \
@@ -322,35 +330,37 @@ gtk_public_h_sources =            \
        gtkaccelgroup.h         \
        gtkaccellabel.h         \
        gtkaccelmap.h           \
-       gtkaccessible.h \
+       gtkaccessible.h         \
        gtkaction.h             \
        gtkactiongroup.h        \
        gtkadjustment.h         \
        gtkalignment.h          \
        gtkarrow.h              \
        gtkaspectframe.h        \
-       gtkassistant.h  \
+       gtkassistant.h          \
        gtkbbox.h               \
        gtkbin.h                \
        gtkbindings.h           \
        gtkbox.h                \
+       gtkbuilder.h            \
+       gtkbuildable.h          \
        gtkbutton.h             \
        gtkcalendar.h           \
        gtkcelleditable.h       \
        gtkcelllayout.h         \
        gtkcellrenderer.h       \
        gtkcellrendereraccel.h  \
+       gtkcellrenderercombo.h  \
        gtkcellrendererpixbuf.h \
-       gtkcellrendererprogress.h \
+       gtkcellrendererprogress.h \
        gtkcellrendererspin.h   \
        gtkcellrenderertext.h   \
        gtkcellrenderertoggle.h \
-       gtkcellview.h \
+       gtkcellview.h           \
        gtkcheckbutton.h        \
        gtkcheckmenuitem.h      \
        gtkclipboard.h          \
        gtkclist.h              \
-       gtkclipboard.h          \
        gtkcolorbutton.h        \
        gtkcolorsel.h           \
        gtkcolorseldialog.h     \
@@ -360,17 +370,18 @@ gtk_public_h_sources =            \
        gtkcontainer.h          \
        gtkctree.h              \
        gtkcurve.h              \
-       gtkdebug.h              \
+       gtkdebug.h              \
        gtkdialog.h             \
        gtkdnd.h                \
        gtkdrawingarea.h        \
-       gtkeditable.h           \
+       gtkeditable.h           \
        gtkentry.h              \
        gtkentrycompletion.h    \
        gtkenums.h              \
        gtkeventbox.h           \
        gtkexpander.h           \
        gtkfilechooser.h        \
+       gtkfilechooserbutton.h  \
        gtkfilechooserdialog.h  \
        gtkfilechooserwidget.h  \
        gtkfilefilter.h         \
@@ -389,8 +400,6 @@ gtk_public_h_sources =              \
        gtkhscale.h             \
        gtkhscrollbar.h         \
        gtkhseparator.h         \
-       gtkstatusicon.h         \
-       gtkhsv.h                \
        gtkiconfactory.h        \
        gtkicontheme.h          \
        gtkiconview.h           \
@@ -405,19 +414,20 @@ gtk_public_h_sources =            \
        gtkitem.h               \
        gtkitemfactory.h        \
        gtklabel.h              \
-       gtklayout.h             \
+       gtklayout.h             \
        gtklinkbutton.h         \
        gtklist.h               \
        gtklistitem.h           \
        gtkliststore.h          \
        gtkmain.h               \
-       gtkmarshal.h    \
        gtkmenu.h               \
        gtkmenubar.h            \
        gtkmenuitem.h           \
        gtkmenushell.h          \
+       gtkmenutoolbutton.h     \
        gtkmessagedialog.h      \
        gtkmisc.h               \
+       gtkmodules.h            \
        gtknotebook.h           \
        gtkobject.h             \
        gtkoldeditable.h        \
@@ -430,11 +440,11 @@ gtk_public_h_sources =            \
        gtkpreview.h            \
        gtkprintcontext.h       \
        gtkprintoperation.h     \
+       gtkprintoperationpreview.h      \
        gtkprintsettings.h      \
        gtkprivate.h            \
        gtkprogress.h           \
        gtkprogressbar.h        \
-       gtkquery.h      \
        gtkradioaction.h        \
        gtkradiobutton.h        \
        gtkradiomenuitem.h      \
@@ -453,29 +463,27 @@ gtk_public_h_sources =            \
        gtkscalebutton.h        \
        gtkscrollbar.h          \
        gtkscrolledwindow.h     \
-       gtksearchengine.h       \
        gtkselection.h          \
        gtkseparator.h          \
        gtkseparatormenuitem.h  \
        gtkseparatortoolitem.h  \
        gtksettings.h           \
        gtksignal.h             \
-       gtksizegroup.h  \
-       gtksignal.h             \
+       gtksizegroup.h          \
        gtksocket.h             \
        gtkspinbutton.h         \
        gtkstatusbar.h          \
+       gtkstatusicon.h         \
        gtkstock.h              \
        gtkstyle.h              \
        gtktable.h              \
-       gtktearoffmenuitem.h    \
+       gtktearoffmenuitem.h    \
        gtktext.h               \
        gtktextbuffer.h         \
        gtktextbufferrichtext.h \
        gtktextchild.h          \
        gtktextdisplay.h        \
        gtktextiter.h           \
-       gtktextlayout.h         \
        gtktextmark.h           \
        gtktexttag.h            \
        gtktexttagtable.h       \
@@ -487,6 +495,7 @@ gtk_public_h_sources =              \
        gtktoolbar.h            \
        gtktoolbutton.h         \
        gtktoolitem.h           \
+       gtktooltip.h            \
        gtktooltips.h           \
        gtktree.h               \
        gtktreednd.h            \
@@ -500,7 +509,7 @@ gtk_public_h_sources =              \
        gtktreeview.h           \
        gtktreeviewcolumn.h     \
        gtktypeutils.h          \
-       gtkuimanager.h  \
+       gtkuimanager.h          \
        gtkvbbox.h              \
        gtkvbox.h               \
        gtkviewport.h           \
@@ -522,17 +531,6 @@ gtk_extra_sources = \
 ..\config.h : ..\config.h.win32
        copy ..\config.h.win32 ..\config.h
 
-GENERATED = \
-       gtktypebuiltins.h gtktypebuiltins.c \
-       gtkmarshal.h gtkmarshal.c gtkmarshalers.h gtkmarshalers.c \
-       gtk.def gtkalias.h gtkaliasdef.c
-
-#
-# Generated source files:
-#
-generated : $(GENERATED)
-       $(TOUCH) generated
-
 gtk.def: gtk.symbols makefile.msc
        echo EXPORTS > gtk.def
        cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES \
@@ -569,10 +567,10 @@ gtktypebuiltins.c: $(gtk_public_h_sources) makefile.msc
        copy xgen-gtbc gtktypebuiltins.c
 
 # private marshalers
-gtkmarshalers.h : gtkmarshalers.list
-       $(GLIB)\gobject\glib-genmarshal --prefix=_gtk_marshal gtkmarshalers.list --header >>gtkmarshalers.h
+gtkmarshalers.h : gtkmarshalers.list makefile.msc
+       $(GLIB)\gobject\glib-genmarshal --prefix=_gtk_marshal gtkmarshalers.list --header >gtkmarshalers.h
 
-gtkmarshalers.c : gtkmarshalers.list
+gtkmarshalers.c : gtkmarshalers.list makefile.msc
        $(GLIB)\gobject\glib-genmarshal --prefix=_gtk_marshal gtkmarshalers.list --body >gtkmarshalers.c
 
 # public, deprecated marshalers
index 9738fc63a78e565e3e850f865bab4407a307eaf6..6c4519d1a1eceee29994bdfef322ac6a098002f4 100644 (file)
 
 #include <config.h>
 #include <string.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 #include <glib/gprintf.h>
 #include <gtk/gtk.h>
 #include <gtk/gtkfilesystem.h>
 
+#ifdef G_OS_WIN32
+#include <direct.h>
+#define rmdir(d) _rmdir(d)
+#endif
+
 #define CALLBACK_TIMEOUT_MS 3000       /* Period after which the callback must have been called */
 #define CANCEL_TIMEOUT_MS 100          /* We'll sleep for this much time before cancelling */
 
index 2db726f867d163442a105a02e99f9ebc110f2c2b..37ee07e216c74b945dca99742540859752d7497f 100644 (file)
@@ -40,13 +40,14 @@ all :       \
 # Test programs:
 #
 TESTAPPS = \
-       autotestfilechooser floatingtest \
+       autotestfilechooser autotestfilesystem \
+       buildertest floatingtest \
        testaccel testactions testassistant \
        testbbox \
        testcairo testcalendar testcellrenderertext testcombo testcombochange \
        testdnd \
        testellipsise testentrycompletion \
-       testfilechooser testfilechooserbutton \
+       testfilechooser testfilechooserbutton testframe \
        testgrouping testgtk \
        testicontheme testiconview testimage testinput \
        testmenus testmenubars testmerge testmultidisplay testmultiscreen \